package com.geek.aware;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class AsyncTaskService {

    @Async
    public void executeAsyncTask(Integer integer) {
        log.info("执行异步任务：{}", integer);
    }

    @Async
    public void executeAsyncTaskPlus(Integer integer) {
        log.info("执行异步任务+1：{}", integer + 1);
    }


}
